home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / include / sys / dirent.h < prev    next >
C/C++ Source or Header  |  1991-03-25  |  603b  |  27 lines

  1. /*
  2.  * Copyright (c) 1991 Regents of the University of California.
  3.  * All rights reserved.  The Berkeley software License Agreement
  4.  * specifies the terms and conditions for redistribution.
  5.  *
  6.  *    @(#)dirent.h    7.2 (Berkeley) 12/22/86
  7.  */
  8.  
  9. #ifndef _DIRENT
  10. #define _DIRENT
  11.  
  12. #include <sys/types.h>
  13.  
  14. #ifndef MAXNAMLEN
  15. #define    MAXNAMLEN    255
  16. #endif
  17.  
  18. struct dirent {
  19.     off_t    d_off;        /* Offset to lseek for next entry. */
  20.     u_long    d_fileno;    /* Unique file identifier. */
  21.     u_short    d_reclen;    /* Length of the record. */
  22.     u_short    d_namlen;    /* Length of the name */
  23.     char    d_name[MAXNAMLEN+1];
  24. };
  25.  
  26. #endif
  27.